<template>
  <footer class="footer">
    <van-tabbar v-model="active" active-color="#ee0a24">
      <van-tabbar-item @click="router.push('/home')" icon="home-o"> 首页 </van-tabbar-item>
      <van-tabbar-item @click="router.push('/cate')" icon="search"> 分类 </van-tabbar-item>
      <van-tabbar-item @click="router.push('/cart')" icon="friends-o">购物车 </van-tabbar-item>
      <van-tabbar-item @click="router.push('/login')" icon="setting-o"> 未登录 </van-tabbar-item>
    </van-tabbar>
  </footer>
</template>

<script setup>
import { ref } from "vue";
import {useRouter} from 'vue-router'
const active = ref(0);
let router = useRouter()
</script>

<style>
</style>